package com.swingson.interpreter.ast;

import com.swingson.interpreter.ast.base.BaseAst;
import javax.swing.JComponent;

/**
 * @author sad
 */
public class GetXAst extends BaseAst {

    private final JComponent component;

    public GetXAst(JComponent component) {
        this.component = component;
    }

    @Override
    public float process() {
        return component.getX();
    }

}
